public class ZhuBajie extends Apprentice{


    public ZhuBajie(Master mediator) {
        super(mediator);
    }

    @Override
    public void sendMessage(String message) {
        System.out.println("猪八戒发送："+message);
        mediator.sendMessage(message, this);
    }

    @Override
    public void receiveMessage(String message) {
        System.out.println("猪八戒接收："+message);

    }
}
